home *** CD-ROM | disk | FTP | other *** search
- global gNavScriptAuthorWindow, gScriptAuthoringWindow
-
- on ChangeWindowSize direction
- set theCurrentRect to the rect of gNavScriptAuthorWindow
- set theCurrentHeight to getAt(theCurrentRect, 4)
- set heightDifference to 258
- if direction = #Expand then
- setAt(theCurrentRect, 4, theCurrentHeight + heightDifference)
- else
- setAt(theCurrentRect, 4, theCurrentHeight - heightDifference)
- end if
- set the rect of gNavScriptAuthorWindow to theCurrentRect
- end
-
- on DisplayText statusString, commentString
- set the text of member "Status Field" to statusString
- set the text of member "Comment Field" to commentString
- end
-
- on closeWindow
- if gScriptAuthoringWindow = the stage then
- tell the stage
- forget(gNavScriptAuthorWindow)
- puppetSound(0)
- go("error message")
- end tell
- else
- tell gScriptAuthoringWindow
- forget(gNavScriptAuthorWindow)
- forget(gScriptAuthoringWindow)
- end tell
- end if
- if count(the windowList) < 1 then
- clearGlobals()
- end if
- end
-